package com.example.loginstructuredemo.login;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.example.loginstructuredemo.R;
import com.example.loginstructuredemo.entity.bean.ArtUserBo;

import butterknife.Bind;
import butterknife.ButterKnife;

import static android.R.attr.name;

public class ShowActivity extends AppCompatActivity {

	@Bind(R.id.tv_show)
	TextView tvShow;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_show);
		ButterKnife.bind(this);

//		String name = getIntent().getStringExtra("obj");
		ArtUserBo artUserBo = (ArtUserBo) getIntent().getSerializableExtra("obj");
		if (artUserBo != null) {
			tvShow.setText(artUserBo.getFollowSummary()+" -- "+artUserBo.getName()+" -- "+artUserBo.getBriefDesc());
		} else {
			tvShow.setText(name);
		}


	}
}
